package com.sj.purchase.modules.cost.views.out_order;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;

import java.util.Date;
import java.util.Set;

/**
 * Created by Alin on 2017/11/24.
 */
public class OutOrderCostVO {

    @Excel(name = "订单编号", width = 35 ,needMerge = true)
    private String orderNo;

    @Excel(name = "出库时间", width = 35 ,needMerge = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    private Date createDate;

    @Excel(name = "卖家店铺", width = 35 ,needMerge = true)
    private String shopName;//店铺

    @Excel(name = "买家旺旺号", width = 35 ,needMerge = true)
    private String buyerName;//买家姓名

    @Excel(name = "订单支付金额", width = 35 ,needMerge = true)
    private Double payment;//销售价（实际付款价格）

    @Excel(name = "订单成本价(唯一码)", width = 35 ,needMerge = true)
    private Double costPrice1;//成本價(需要計算)

    @Excel(name = "订单成本价(平均价)", width = 35 ,needMerge = true)
    private Double costPrice2;//成本價(需要計算)
    
    @Excel(name = "订单利润(唯一码)", width = 35 ,needMerge = true)
    private Double profit1;//利潤(需要計算)

    @Excel(name = "订单利润(平均价)", width = 35 ,needMerge = true)
    private Double profit2;//利潤(需要計算)

    @ExcelCollection(name="明细")
    private Set<InventoryItemCostVO> inventoryItems;

    public String getOrderNo() {
        return orderNo;
    }

    public OutOrderCostVO setOrderNo(String orderNo) {
        this.orderNo = orderNo;
        return this;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public OutOrderCostVO setCreateDate(Date createDate) {
        this.createDate = createDate;
        return this;
    }

    public String getShopName() {
        return shopName;
    }

    public OutOrderCostVO setShopName(String shopName) {
        this.shopName = shopName;
        return this;
    }

    public String getBuyerName() {
        return buyerName;
    }

    public OutOrderCostVO setBuyerName(String buyerName) {
        this.buyerName = buyerName;
        return this;
    }

    public Double getPayment() {
        return payment;
    }

    public OutOrderCostVO setPayment(Double payment) {
        this.payment = payment;
        return this;
    }

    public Double getCostPrice1() {
        return costPrice1;
    }

    public OutOrderCostVO setCostPrice1(Double costPrice1) {
        this.costPrice1 = costPrice1;
        return this;
    }

    public Double getCostPrice2() {
        return costPrice2;
    }

    public OutOrderCostVO setCostPrice2(Double costPrice2) {
        this.costPrice2 = costPrice2;
        return this;
    }

    public Double getProfit1() {
        return profit1;
    }

    public void setProfit1(Double profit1) {
        this.profit1 = profit1;
    }

    public Double getProfit2() {
        return profit2;
    }

    public void setProfit2(Double profit2) {
        this.profit2 = profit2;
    }

    public Set<InventoryItemCostVO> getInventoryItems() {
        return inventoryItems;
    }

    public OutOrderCostVO setInventoryItems(Set<InventoryItemCostVO> inventoryItems) {
        this.inventoryItems = inventoryItems;
        return this;
    }
}
